<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>

	<!-- ##Style: win98 -->

	<!-- Prevent BCI fonts in Win98 mode from getting artificial italic -->
	<match target="font">
		<test name="font_type">
			<string>TT Instructed Font</string>
		</test>
		<!-- check to see if the font is roman -->
		<test name="slant">
			<const>roman</const>
		</test>
		<!-- match requests for non-roman face -->
		<test target="pattern" name="slant" compare="not_eq">
			<const>roman</const>
		</test>
		<!-- pretend the font is oblique now -->
		<edit name="slant" mode="assign">
			<const>oblique</const>
		</edit>
	</match>

	<!-- Prevent BCI fonts in Win98 mode from getting artificial emboldened -->
	<match target="font">
		<test name="font_type">
			<string>TT Instructed Font</string>
		</test>
		<!-- check to see if the font is just regular -->
		<test name="weight" compare="less_eq">
			<const>medium</const>
		</test>
		<!-- check to see if the pattern requests bold -->
		<test target="pattern" name="weight" compare="more">
			<const>medium</const>
		</test>
		<!-- pretend it's bold now -->
		<edit name="weight" mode="assign">
			<const>bold</const>
		</edit>
	</match>

</fontconfig>
